<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01_DOM入门</title>
</head>
<body>
<button onclick="add()">点我变富有</button>
<script>
    function add() {
        let E = document.createElement("img")
        E.src="img/money.jpg";
        E.width=200;
        let body = document.querySelector("body")
        body.append(E)
    }
</script>
</body>
</html>